//
//  WSCustomPickerView.h
//  LANGirl
//
//  Created by 杨泓晔 on 16/3/12.
//  Copyright © 2016年 杨泓晔. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol WSCustomPickerViewDelegate <NSObject>

- (void)sendAddressInfo:(NSString *)address;

@end

typedef void(^myBlock)(NSString *info);

@interface WSCustomPickerView : UIView

@property (nonatomic, copy) NSString *titleStr;

@property (nonatomic, assign) id<WSCustomPickerViewDelegate> delegate;

/**
 *  选择器单行显示
 *
 *  @param frame   [UIScreen mainScreen].bounds
 *  @param dataArr 传入数据数组
 *
 *  @return self
 */
- (instancetype)initWithFrame:(CGRect)frame dataArr:(NSArray *)dataArr;
/**
 *  日期选择器
 *
 *  @param frame [UIScreen mainScreen].bounds
 *  @param type  类型 1
 *
 *  @return self
 */
- (instancetype)initWithFrame:(CGRect)frame type:(NSInteger)type;
//显示picker
- (void)showPicker;
//移除picker
- (void)removePicker;


@end
